package com.kaikeba.t31.ticket.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kaikeba.t31.core.po.BaseEntity;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 时刻表
 *
 * @author Cui Yicheng
 * @since 2021-11-23
 */
@Data
@TableName("train_sku")
public class Sku extends BaseEntity {

    /**
     * 发车日期
     */
    @TableField("train_date")
    private LocalDate trainDate;

    /**
     * 车次外键
     */
    @TableField("number_id")
    private Long numberId;

    /**
     * 车次
     */
    @TableField("train_number")
    private String trainNumber;

    /**
     * 始发站
     */
    @TableField("start_station")
    private String startStation;

    /**
     * 终点站
     */
    @TableField("end_station")
    private String endStation;

    /**
     * 出发站
     */
    @TableField("from_station")
    private String fromStation;

    /**
     * 到达站
     */
    @TableField("to_station")
    private String toStation;

    /**
     * 发车时间
     */
    @TableField("start_time")
    private String startTime;

    /**
     * 到达时间
     */
    @TableField("arrival_time")
    private String arrivalTime;

    /**
     * 运行时长
     */
    @TableField("duration")
    private String duration;

    /**
     * 出发站编号
     */
    @TableField("from_no")
    private Integer fromNo;

    /**
     * 到达站编号
     */
    @TableField("to_no")
    private Integer toNo;

    /**
     * 硬坐余票数
     */
    @TableField("hard_seat_stock")
    private Integer hardSeatStock;

    /**
     * 一等座余票数
     */
    @TableField("first_seat_stock")
    private Integer firstSeatStock;

    /**
     * 二等座余票数
     */
    @TableField("second_seat_stock")
    private Integer secondSeatStock;

    /**
     * 特等座余票数
     */
    @TableField("special_seat_stock")
    private Integer specialSeatStock;

    /**
     * 硬卧余票数
     */
    @TableField("hard_sleeper_stock")
    private Integer hardSleeperStock;

    /**
     * 软卧余票数
     */
    @TableField("soft_sleeper_stock")
    private Integer softSleeperStock;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
